import request from '@/utils/request'

// 获取账号列表
export function getAccountList(params) {
  return request({
    url: '/account/student/list',
    method: 'get',
    params
  })
}

// 新增账号
export function createAccount(data) {
  return request({
    url: '/account/create',
    method: 'post',
    data
  })
}

// 更新账号
export function updateAccount(data) {
  return request({
    url: '/account/update',
    method: 'put',
    data
  })
}

// 批量添加账号
export function batchCreateAccount(data) {
  return request({
    url: '/account/create/batch',
    method: 'post',
    data
  })
}
